﻿using Newtonsoft.Json;
using System.Collections.Generic;

namespace VisionCloud.Domain.DtoModel.Inner
{
    /// <summary>
    /// FMS接口对应的Body实体
    /// </summary>
    public class DevicePushFMSDto
    {
        /// <summary>
        /// 设备编号
        /// </summary>
        [JsonProperty("deviceCode")]
        public string DeviceCode { get; set; }

        /// <summary>
        /// 是否激活
        /// </summary>
        [JsonProperty("active")]
        public bool Active { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        [JsonProperty("projectName")]
        public string ProjectName { get; set; }

        /// <summary>
        /// 累计测量面积（单位m²）
        /// </summary>
        [JsonProperty("totalMeasureArea")]
        public double TotalMeasureArea { get; set; }

        /// <summary>
        /// 累计作业时长（单位天）
        /// </summary>
        [JsonProperty("totalWorkingDuration")]
        public double TotalWorkingDuration { get; set; }

        /// <summary>
        /// 软件版本号
        /// </summary>
        [JsonProperty("softwareVersion")]
        public string SoftwareVersion { get; set; }

        /// <summary>
        /// 最近上传时间
        /// </summary>
        [JsonProperty("uploadTime")]
        public string UploadTime { get; set; }

        /// <summary>
        /// 最近日统计
        /// </summary>
        [JsonProperty("measureDetailList")]
        public List<DeviceDateMeasureDetailDto> MeasureDetailList { get; set; } = new List<DeviceDateMeasureDetailDto>();
    }
}
